projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8167316
)
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.
author
Michael Albinus
<michael.albinus@gmx.de>
Fri, 28 Dec 2018 09:22:42 +0000
(10:22 +0100)
committer
Michael Albinus
<michael.albinus@gmx.de>
Fri, 28 Dec 2018 09:22:42 +0000
(10:22 +0100)
lisp/net/tramp-sh.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp-sh.el
b/lisp/net/tramp-sh.el
index 789d16cd06760915f69972054e352579bee36a94..991a21026343372be5526f0635deca84c7b7177b 100644
(file)
--- a/
lisp/net/tramp-sh.el
+++ b/
lisp/net/tramp-sh.el
@@
-3960,8
+3960,10
@@
variable PATH."
(format "PATH=%s; export PATH"
(mapconcat 'identity (tramp-get-remote-path vec) ":")))
(pipe-buf
- (with-tramp-connection-property vec "pipe-buf"
- (tramp-send-command-and-read vec "getconf PIPE_BUF /")))
+ (or (with-tramp-connection-property vec "pipe-buf"
+ (tramp-send-command-and-read
+ vec "getconf PIPE_BUF / 2>/dev/null || echo nil" 'noerror))
+ 4096))
tmpfile)
(tramp-message vec 5 "Setting $PATH environment variable")
(if (< (length command) pipe-buf)